a11y: Localise the role name of the root node
authorEmmanuele Bassi <ebassi@gnome.org>
Sat, 10 Oct 2020 11:55:54 +0000 (12:55 +0100)
committerEmmanuele Bassi <ebassi@gnome.org>
Mon, 12 Oct 2020 15:19:32 +0000 (16:19 +0100)
gtk/a11y/gtkatspiroot.c

index e1a76b1e95e2149aa5cb677670da71fbfc77dbf9..998ef9513463f736872bbdc46ea0b1419641b5ae 100644 (file)
@@ -33,6 +33,7 @@
 
 #include <locale.h>
 
+#include <glib/gi18n-lib.h>
 #include <gio/gio.h>
 
 #define ATSPI_VERSION           "2.1"
@@ -219,7 +220,7 @@ handle_accessible_method (GDBusConnection       *connection,
   else if (g_strcmp0 (method_name, "GetRoleName") == 0)
     g_dbus_method_invocation_return_value (invocation, g_variant_new ("(s)", "application"));
   else if (g_strcmp0 (method_name, "GetLocalizedRoleName") == 0)
-    g_dbus_method_invocation_return_value (invocation, g_variant_new ("(s)", "application"));
+    g_dbus_method_invocation_return_value (invocation, g_variant_new ("(s)", C_("accessibility", "application")));
   else if (g_strcmp0 (method_name, "GetState") == 0)
     {
       GVariantBuilder builder = G_VARIANT_BUILDER_INIT (G_VARIANT_TYPE ("(au)"));